package com.koala.learn.streamlearn;

import cn.hutool.core.util.CreditCodeUtil;
import lombok.Data;

import java.util.Random;

/**
 * @Description TODO
 * @Date 2022/5/20 2:11
 * @Created by koala
 */

@Data
public class Person {

    static ThreadLocal<Person> loginSession = new ThreadLocal<>();


    private String name;
    private Integer age;

    public static void main(String[] args) {
        
    }


    /**
     * Bearer token value user   token -> value redis
     */


    public Person() {
        final Random random = new Random();
        name = CreditCodeUtil.randomCreditCode();
        age = random.nextInt(100);
    }

    public Person(String name, Integer age) {
        this.name = name;
        this.age = age;
    }
}
